<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>APP</title>
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../../css/dtapp.css" />
<script type="text/javascript" src="../../script/api.js" ></script>
<script type="text/javascript" src="../../script/zepto.min.js" ></script>
<script type="text/javascript" src="../../script/echo.min.js" ></script>
<script type="text/javascript" src="../../script/dtapp.js" ></script>
<script type="text/javascript" src="../../script/doT.min.js" ></script>

<style>
    .aui-list-view .aui-iconfont {
    padding: 0px;
    border-radius: 0px;
    margin-right: 0px !important;
    color: #ffffff;
    font-size: 1.125em;
}
.aui-list-view {
	margin-bottom: 5px !important;
	list-style: none;
	background-color: #fff;
}
.aui-list-view:after {
  	border-top: 1px solid #e7e7e7 !important;
}
.aui-list-view-cell {
	padding: 10px 15px !important;

}
.aui-list-view-cell:after {
	border-bottom: 1px solid #e7e7e7 !important;
}
.image { width: 100% !important; height:200px; overflow: hidden !important;}

.opencall {
				display: inline-block;
				vertical-align: middle;
				font-size: 12px;
				color: #3C4146 ;
				height: 25px;
				line-height: 25px;
				padding: 4px 2px;
				border-radius: 2px;
				-webkit-border-radius: 2px;
				margin-left: 0px;
			}
.aui-tab-nav li.active {
        color: #ff9900;
        border-bottom: 2px #ff9900 solid;
    }
    .info {
    background:#fff;
        padding: 10px;
        overflow: hidden;
        margin-bottom: 0;
    }
    .info img {
        width: 100%;
    }
    .info p {
        color: #666;
    }			
</style>
</head>
<body>
<div style="height:0px;"></div>
<script id="sell-template" type="text/x-dot-template">
{{? !!it.itemid }}
<div class="aui-content">
<ul class="aui-list-view">
<li class="aui-list-view-cell aui-img">
                <div class="aui-img-body aui-text-center">
                    <span class="aui-margin-b-5 fz20">{{=it.title}}</span>
                    <p class="aui-ellipsis-2 aui-text-center">
                    <i class="aui-iconfont aui-icon-time aui-text-gray"></i>{{=it.editdate}}<i class="aui-iconfont aui-icon-attentionfill aui-text-gray"></i>{{=it.hits}}
                    </p>
                </div>
</li>
</ul>
</div>
<div class="aui-content aui-bg-white">
<ul class="aui-list-view aui-grid-view">
            <li class="aui-list-view-cell aui-img aui-col-xs-12">               
                    <img class="aui-img-object" src="{{=it.thumb}}">
            </li>
        </ul>
 
</div>

<div class="aui-content">
<div class="fz18 aui-bg-white aui-padded-10 aui-text-info">企业信息</div>
        <ul class="aui-list-view aui-in aui-sell-comoany">
            <li class="aui-list-view-cell fz16">
               公司：<span class="aui-text-info">{{=it.company}}
            </li>
            <li class="aui-list-view-cell fz16">
               姓名：{{=it.truename}}
            </li>
            <li class="aui-list-view-cell fz16">
               职位：{{? !!it.career }}{{=it.career}}{{?}}
            </li>
            <li class="aui-list-view-cell fz16">
               电话：{{=it.telephone}}
            </li>
            <li class="aui-list-view-cell fz16">
               手机：{{=it.mobile}}{{? !!it.mobile }}&nbsp;<span class="aui-iconfont aui-icon-phone aui-text-info fz12" onclick="openpcall({{=it.mobile}})">马上联系</span>{{?}}
            </li>
            <li class="aui-list-view-cell fz16">
               地区：{{=it.area}}
            </li>
            <li class="aui-list-view-cell fz16">
               地址：{{=it.address}}
            </li>
        </ul>
    </div>

<div class="aui-content">
    <div class="aui-tab">
        <ul class="aui-tab-nav" id="content">
            <li class="active">产品详情</li>
            <li>热门点评</li>
        </ul>
    </div>
    <div class="aui-content info">
        <p>{{=it.content}}</p>       
    </div>
</div>

<div class="aui-content">
<ul class="aui-list-view aui-in">
<li class="aui-list-view-cell aui-text-info">该企业其他产品</li>
</ul>
</div>						
 {{?}}
</script>
<div id="sell-content"></div>

</body>
<script type="text/javascript">

           apiready = function(){
           //loadballshow();//显示加载进度框
                   /* 根据当前模块分类动态改变标题. */
           var itemid = api["pageParam"]["itemid"];
           var sortBrief = "";
           api.ajax({
                url:apiUrl+'index.php?apptype='+apiread+'&moduleid=5&itemid='+itemid+'',//如果地址访问不到会请求出错，请填写自己的接口地址
                method:'get',
                cache:'false',
                timeout:30,
                dataTpye:'json',
                },function(ret,err){
                loadballhide();//隐藏加载进度框
                 if(ret){
                        
                        var headname = ret.headname;
                        if( ! headname){ // 说明此分类为无效分类.默默返回即可.
                          headname = '信息详情';
                          }
                        var jsfun = 'setcat_title("信息详情")';
                        api.execScript({
                        name: 'sell_show',
                        script: 'setcat_title("'+headname+'")'
                        });
                        picarr = [ret.thumb];
						//slide(picarr);
                        var content = $api.byId('sell-content');
                        var tpl = $api.byId('sell-template').text;
                        var tempFn = doT.template(tpl);
                        $api.html(content, tempFn(ret));
						
                }else{
                api.alert({msg:('错误码：'+err.code+'；错误信息：'+err.msg+'网络状态码：'+err.statusCode)});
                }
                });
                
           }
   
</script>
</html>